<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   <script>
        const result1 = Promise.reject("早点睡觉~~~")
        console.log(result1);

        const result2 = Promise.reject(new Promise((resolve,reject)=>{
            reject("我是失败的promise实例")
        }))
        console.log(result2);

        const result3 = Promise.reject(new Promise((resolve,reject)=>{
            resolve("我是成功的promise实例")
        }))
        console.log(result3);

   </script> 
</body>
</html>